﻿#pragma once
#include "MdbTables.h"
#include "MdbSubscriber.h"
#include "DBSubscriber.h"


namespace mdb
{
	class Mdb : public DBSubscriber
	{
	public:
		Mdb();
		void Subscribe(MdbSubscriber* mdbSubscriber);
		void UnSubscribe();
		void InitDB();
		void SetInitStatus(bool initStatus);
		void Dump(const char* dir);
		void Clear();
		
		virtual void OnDBConnected() override;
		virtual void OnDBDisConnected() override;

	public:
		TickTable* t_Tick;
		BarTable* t_Bar;
	};
}

